﻿namespace Hl.Core;

public class CoreDefine
{
	//899
    public const string NlogConfigName = "NLog.config";

    public const string NlogConfig =
        "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<nlog xmlns=\"http://www.nlog-project.org/schemas/NLog.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" autoReload=\"true\">\r\n\t<targets>\r\n\t\t<target name=\"file\" xsi:type=\"AsyncWrapper\" queueLimit=\"5000\" overflowAction=\"Discard\">\r\n\t\t\t<target xsi:type=\"File\" fileName=\"${basedir}/logs/${shortdate}.log\" layout=\"${longdate} ${level:uppercase=true} ${event-context:item=Action} ${message} ${event-context:item=Amount} ${stacktrace}\" />\r\n\t\t</target>\t\t\r\n\t</targets>\r\n\t<rules>\r\n\t\t<logger name=\"*\" minlevel=\"Debug\" writeTo=\"file\" />\r\n\t</rules>\r\n</nlog>";

}